package com.yzh.luckydraw.interfaces.assembler;

import com.yzh.luckydraw.domain.strategy.model.vo.DrawAwardVO;
import com.yzh.luckydraw.rpc.activity.booth.dto.AwardDTO;
import org.mapstruct.*;

@Mapper(componentModel = "spring", unmappedSourcePolicy = ReportingPolicy.IGNORE, unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface AwardMapping {
    @Mapping(source = "uId", target = "userId")
    AwardDTO toDTO(DrawAwardVO drawAwardVO);

    @InheritInverseConfiguration
    DrawAwardVO toVO(AwardDTO awardDTO);
}
